<?php
return [
    'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
    'components' => [
        'cache' => [
            'class' => 'yii\caching\FileCache',
        ],
    	'session' => [
    			'class' => 'yii\web\Session'
    	],
    	'request' => [
    			'enableCookieValidation' => true,
    			'cookieValidationKey' => 'baiaimama',
    	],
    		
    	'db'           => require(__DIR__ . '/db.php'),
    	'db_detection' => require(__DIR__ . '/db_detection.php'),
    	'db_app'       => require(__DIR__ . '/db_app.php'),
    	'mongodb'      => require(__DIR__ . '/mongodb.php'),
    	'redis'        => require(__DIR__ . '/redis.php'),	
    		
    	'urlManager' => [
    			'class' => 'yii\web\UrlManager',
    			'enablePrettyUrl' => true,
    			'showScriptName' => false,
    	],
    		
		'mailer' => [  
			'class' => 'yii\swiftmailer\Mailer',  
			'transport' => [  
				'class' => 'Swift_SmtpTransport',  
				'host' => 'smtp.163.com',  
				'username' => '***@***',  
				'password' => '****',  
				'port' => '25',  
// 				'encryption' => 'ssl',  
			],   
           'messageConfig'=>[  
				'charset'=>'UTF-8',  
				'from'=>['***@**'=>'admin']  
			],  
       ], 
    		
    	'wechat' => require(__DIR__ . '/wechat.php'),
    		
    ],
		
	//开发环境使用
// 	'bootstrap' => ['debug'],
// 	'modules' => [
// 			'debug' => [
// 					'class' => 'yii\debug\Module',
// 					'panels' => [
// 							'mongodb' => [
// 									'class' => 'yii\mongodb\debug\MongoDbPanel',
// 							],
// 					],
					
// 			],
// 	],
];
